package cn.com.fattiger.framework.mec.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RequestMapping("admin")
@Controller
public class LoginController {
	
	@RequestMapping(value = "login.do")
    public String login(String name, String pass, HttpServletRequest request, HttpServletResponse response, ModelMap map) {
	 	try {
			response.sendRedirect("frameCtl.do");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	 	return "";
    }

}
